
 function gotoPre()
{	
	//alert('pre');
	var pageinfo = document.all("pageinfo").value;
	//alert(pageinfo);
	if(pageinfo<=0){
		
		return;
	}else{
		document.all("pageinfo").value = parseInt(pageinfo)-1;
		document.all("whichpage").value = parseInt(document.all("whichpage").value)-1;
		sendRequest();
	}	
}

function gotoNext()
{
	//alert('next');
	var pageinfo = document.all("pageinfo").value;
	var pageNo = document.all("pageNo").innerText;
	if(pageNo<=parseInt(pageinfo)+1){
		//alert('');
		return;
	}else{
		document.all("pageinfo").value = parseInt(pageinfo)+1;
		document.all("whichpage").value = parseInt(document.all("whichpage").value)+1;
		sendRequest();
	}	
}

function gotofirst()
{
	//alert('first');
	document.all("pageinfo").value=0;
	document.all("whichpage").value = 1;
	sendRequest();
}

function gotoLast(){
	//alert(document.all("pageNo").innerText);
	document.all("pageinfo").value = document.all("pageNo").innerText-1;
	document.all("whichpage").value = document.all("pageNo").innerText;
	sendRequest();
}

function gotoPageWhich(){
	//alert('which');
	var whichpage = document.all("whichpage").value;
	var pageNo = document.all("pageNo").innerText;
	if(pageNo<parseInt(whichpage)){
		alert('');
		return;
	}else{
		document.all("pageinfo").value = document.all("whichpage").value-1;
		sendRequest();
	}	
}

